<% form_remote_for :area, :url => areas_url do |f| -%>
  <input type="hidden" name="pid" value="<%= @parent_id %>" />
  <table border="0" cellspacing="10" cellpadding="10">
    <tr>
      <td><label for="area_title">地区名称：</label></td>
      <td><%= f.text_field :title, :size => 10 %></td>
    </tr>
    <tr>
      <td><label for="area_zipcode">邮政编码：</label></td>
      <td><%= f.text_field :zipcode, :size => 10 %></td>
    </tr>
  </table>
  <div style="text-align:center" id="submit-btn"><%= submit_tag "添加", :onclick => "this.disabled=true;this.value='正在提交 ...';" %> 或 <%= link_to "取消", "javascript:void(0)", :onclick => "tb_remove()" %></div>
<% end -%>